package com.chen.stopwatch.views;

import android.app.Activity;
import android.content.Context;
import android.view.ViewGroup;

import com.google.ads.AdSize;
import com.google.ads.AdView;

public class AdsView extends ViewGroup {
	public AdsView(Context context) {
		super(context);
		init((Activity) context);
	}

	AdView adView = null;

	Context _context = null;

	public void init(Activity context) {
		_context = context;

		adView = new AdView(context, AdSize.BANNER, "a14f856de4ea26e");

		addView(adView);
	}

	@Override
	protected void onLayout(boolean changed, int l, int t, int r, int b) {
		adView.layout(l, t, r, b);
	}
}
